import { reactive, ref } from "vue";

export default function InitHook() {
  const searchForm = reactive<NotificationMessage.SearchForm>({
    noticeContent: "",
    noticeTime: [],
    beforePageNum: 0,
    pageNum: 1,
    pageSize: 100,
    total: 0
  });
  const tableData = ref<Array<NotificationMessage.ListRows>>([]);
  const loading = ref<boolean>(false);
  return {
    searchForm,
    tableData,
    loading
  };
}
